<?php

namespace Module\RightClickForbidden\Admin\Controller;

use Illuminate\Routing\Controller;
use ModStart\Admin\Layout\AdminConfigBuilder;

class ConfigController extends Controller
{
    public function setting(AdminConfigBuilder $builder)
    {
        $builder->pageTitle('鼠标禁止右击设置');
        $builder->switch('RightClickForbidden_Enable', '开启禁止右击');
        $builder->text('RightClickForbidden_Tips', '右击提示问题')->help('默认为 禁止右击');
        $builder->formClass('wide');
        return $builder->perform();
    }

}
